package com.ruoyi.project.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.base.Field;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@ApiModel("阶段字典配置表")
@TableName(value = "project_fee ",autoResultMap = true)
public class ProjectFee extends Field {

    private static final long serialVersionUID = 1L;

    /** id */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("阶段编码")
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 管家婆项目id */
    @Excel(name = "管家婆项目id")
    private String housekeeperProject;

    /** 总费用 */
    @Excel(name = "总费用")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "#0.00")
    private BigDecimal total;

    /** 报销类型 */
    @Excel(name = "报销类型")
    private String useType;

    /** 类型主类  根据数据观察  vcType是36 且 useType是1的表示是报销费用  vcType是4 类型是1的为收款    以上取大于0的*/
    @Excel(name = "类型主类")
    private String mainType;

    /** 报销日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报销日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitDate;

    //管家婆的用户id
    private String userId;

    //备注
    private String  remark;

    private String datas;

    @TableField(exist = false)
    private String name;

}